package com.glp.work.flow.dto;

import lombok.Data;

import java.util.Objects;

@Data
public class CustomerInfoDTO {
    private String code;
    private String nameAndCode;
    private String name;
    private String type;
    private String idNo;
    private String source;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CustomerInfoDTO that = (CustomerInfoDTO) o;
        return Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }
}
